import numpy as np 
from scipy.optimize import linprog

c = np.array([2,2,2,4,9])
A_ub = np.array([[-1,0,0,0,-1],[0,-1,0,0,-1],[0,0,-1,0,-1],[0,0,0,-1,-1]])
# print(A_ub)
b_ub = np.array([-1,-1,-1,-1])
result = linprog(c,A_ub=A_ub,b_ub=b_ub,bounds=((0,1),(0,1),(0,1),(0,1),(0,1)))
print(result)
